import dateFormat from "vux/src/tools/date/format.js";
import template from "./dataDetailTemplate";
const { render, staticRenderFns } = template;

export default {
  render,
  staticRenderFns,
  props: {
    msgDetailData: {
      type: Object,
      default: function () {
        return {};
      },
    },
  },
  filters: {
    dateFormat,
  },
  data() {
    return {
      title: "公告详情",
    };
  },
  created() {
    if (!this.msgDetailData.title) {
      this.$router.go(-1);
    }
    this.title = this.msgDetailData.type == 1 ? "公告详情" : "信息详情";
  },
  methods: {},
};

// WEBPACK FOOTER //
// ./src/components/msgCenter/dataDetail.vue
